package com.welink.cmp.topotree;

import com.welink.cmp.dto.topotree.BuildServiceTopologyAddCmd;
import com.welink.cmp.dto.topotree.GetHostByServiceTreeQry;
import com.welink.cmp.dto.topotree.ModifyServiceTopologyUptCmd;
import com.welink.cmp.dto.topotree.ServiceTreeCO;
import com.welink.cmp.topotree.command.ServiceTopoExe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yanwei li create  2024-06-04 18:36
 */
@Service
public class ServiceTopologyAppService {

    @Autowired
    private ServiceTopoExe serviceTopoExe;

    /**
     * [新增]构建服务拓扑关系
     * @return resultCode
     */
    public Boolean buildServiceTopology(BuildServiceTopologyAddCmd addCmd){

        return null;
    }

    /**
     * [修改]修改主机绑定服务数
     * @param updCmd 服务树标签
     * @return 成功
     */
    public Boolean modifyServiceLabel(ModifyServiceTopologyUptCmd updCmd){


        return null;
    }

    /**
     * [列表查询] 通过服务标签查询 标签下机器
     * @param treeQry 标签字符串
     * @return 主机 ID 列表
     */
    public List<ServiceTreeCO> getHostByServiceLabel(GetHostByServiceTreeQry treeQry){
        List<ServiceTreeCO> list = new ArrayList<>();


        return list;
    }
}
